package com.mvc.entity;

/**
 * @author wzm
 * @create 2023-02-27 14:34
 */
//模型层 存储与表对应的内容 进行封装
public class Student {
    private Integer id;//id
    private String stuName;//姓名
    private String stuSex;//性别
    private Integer age;//年龄
    private String address;//地址
    private Integer status;//状态

    public Student() {
    }

    public Student(Integer id, String stuName, String stuSex, Integer age, String address, Integer status) {
        this.id = id;
        this.stuName = stuName;
        this.stuSex = stuSex;
        this.age = age;
        this.address = address;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getStuSex() {
        return stuSex;
    }

    public void setStuSex(String stuSex) {
        this.stuSex = stuSex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", stuName='" + stuName + '\'' +
                ", stuSex='" + stuSex + '\'' +
                ", age=" + age +
                ", address='" + address + '\'' +
                ", status=" + status +
                '}';
    }
}
